package model.semantics.unary;

import model.semantics.UnaryOperation;



/**
 * Take the floor function.
 * 
 * @author Anne Weng
 */
public class Floor extends UnaryOperation
{
	protected boolean leftAssociative = false;
	
	public Floor(int precedence)
	{
		super(precedence);
	}
	
    @Override
    protected double evaluateValue (double value)
    {
        if (value > 0)
        {
        	return 0;
        }
        else
        {
        	return -1;
        }
    }
}
